]> dgit.raspbian.org Git - gnome-shell.git/commit
keyboard: Don't check for key.action using strict equality operator
authorJonas Dreßler <verdre@v0yd.nl>
Sun, 17 Nov 2024 18:01:23 +0000 (19:01 +0100)
committerFlorian Müllner <fmuellner@gnome.org>
Sat, 23 Nov 2024 12:18:42 +0000 (13:18 +0100)
commitdefdd8784653bdf4147b0b9a45d9bf7cdc5367f2
treeeb8e0f0b84ee1d5b154354b6b503a878b41c9e67
parent81a3d5bf7331daed59dc3a66058e79c8e5c1ecb8
keyboard: Don't check for key.action using strict equality operator

A lot of keys have no action set. In that case key.action is `undefined`,
but the strict equality check of `action !== null` here will return true and
we'll enter the if-case anyway.

That's quite confusing and was not intended like that, so change the
comparison to a less-strict operator.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3286>
(cherry picked from commit 91ffc4c06bbb0e4c8a5df76642c8576b61fbde9e)
js/ui/keyboard.js